/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package Model;

import DAO.DAOModelo;
import java.io.Serializable;

/**
 *
 * @author Renata
 */
public class BeanModelo implements Serializable {
     
    private int ID;
    private String descricao;

    public BeanModelo() {
    }
    
    public BeanModelo(int ID) {
        DAOModelo bancoModelo = new DAOModelo();
        BeanModelo modelo = bancoModelo.RetornaModelo(ID);
        if (modelo == null)
            return;
        this.ID = modelo.getID();
        this.descricao = modelo.getDescricao();
    }

    public int getID() {
        return ID;
    }

    public void setID(int ID) {
        this.ID = ID;
    }

    public String getDescricao() {
        return descricao;
    }

    public void setDescricao(String descricao) {
        this.descricao = descricao;
    }
    
    
}